function [ g ] = desired_simetry( patterns )
global FALSE;

% DESIRED_SIMETRY
% Esta funcion devuelve los valores deseados acorde a la funcion simetria

g = ones(1, length(patterns));
for i = 1:length(patterns)
   pattern = patterns(:,i);
   pattern = pattern(2:length(pattern));
   len = length(pattern);
   for j = 1:len
      if pattern(j) ~= pattern(len+1-j)
          g(i) = FALSE;
          break;
      end
   end
end

end

